package org.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.DApplyApartment;
import org.example.pojo.DRepair;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.pojo.DRepairContent;
import org.example.pojo.DStaff;
import org.example.pojo.select.DRepairSelect;
import org.example.utils.Result;

import java.util.List;
import java.util.Map;

/**
* @author chenhongkai
* @description 针对表【d_repair(报修表)】的数据库操作Mapper
* @createDate 2024-05-25 16:06:27
* @Entity org.example.pojo.DRepair
*/
public interface DRepairMapper extends BaseMapper<DRepair> {

    IPage<Map> SelectAllRepairs(Page<DRepair> page, DRepairSelect dRepairSelect);

    int insertRepair(DRepair dRepair);

    Integer SelectAllRepairsTotal(@Param("dRepairSelect") DRepairSelect dRepairSelect);

    List<String> getApartmentAllId();

    DStaff selectStaffNoByNo(String staffId);

    List<DRepair> selectDeviceUid(String uid);

    List<String> getRepairType();

    List<DRepairContent> selectRepairContent(String rid);

    int updateRepairContent(@Param("repairContent") DRepairContent repairContent);

    int insertRepairContent(@Param("repairContent") DRepairContent repairContent);

    int deleteRepairContent(String rcid);
}




